<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>11 函数声明提升</title>
	</head>
	<body>
		<script type="text/javascript">
			/* foo();
			function foo(){
				console.log(1);
			} */
			/* var foo;
			foo();
			foo = function(){
				console.log(1);
			} */
			var foo;
			foo();
			foo = function bar(){
				console.log(1);
			}
			
			
		</script>
	</body>
</html>
